﻿using System.Windows.Forms;

namespace ruscehproj2
{
    public partial class bm005 : Form
    {
        public bm005()
        {
            InitializeComponent();
        }

        bool isActive = false;
        byte modeState = 1;
        double angle  = 0;
        public bool getState()
        {
            return isActive;

        }

        private void bm005_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                this.Hide();
            }
        }

        private void bm005_Load(object sender, System.EventArgs e)
        {
            if (FormManager.hlp.helpEnabled())
            {
                if (FormManager.bv9kit1.getState())
                {
                    FormManager.hlp.setHelpId("end");
                    FormManager.hlp.hlpRefresh();
                    
                }
                else
                {
                    FormManager.hlp.notSoFast();
                }
                FormManager.hlp.Show();
            }
        }

        private void bm005_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (FormManager.bv9kit1.getState()) FormManager.hlp.setHelpId("17");
            FormManager.hlp.Hide();
        }

      
    }
}
